import request from '@/utils/request'
//获取该小组所有成员
export function getGroupMemberAPI(groupId) {
    return request({
        url: '/groupMemberships/getByGroupId/' + groupId,
        method: 'GET',
    })
}
//删除该小组某成员
export function deleteMemberAPI(data) {
    return request({
        url: '/groupMemberships',
        method: 'DELETE',
        data
    })
}
//加入组接口
export function addMemberAPI(groupId,studentId) {
    return request({
        url: '/groupMemberships',
        method: 'POST',
        params:{
            groupId: groupId,
            studentId: studentId
        }
    })
}